package com.example.tse.rbhttpservice.service.member.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.member.model.MemberFavoriteGetArticleList;
/**
 * 获取用户个人的文章收藏商品列表，返回结果按照添加时间到序
 * @author wliu
 * edit tse
 */
public class MemberFavoriteGetArticleListResponse extends RudderResponse{
    
    private List<MemberFavoriteGetArticleList> getArticleList = new ArrayList<MemberFavoriteGetArticleList>();
		
	
    /**
     * @return getArticleList
     */	
    public List<MemberFavoriteGetArticleList> getGetArticleList() { 
	    return this.getArticleList;
    };
	
	/**
     * @return getArticleList
     */	
    public void setGetArticleList(List<MemberFavoriteGetArticleList> getArticleList) { 
        this.getArticleList = getArticleList;
    };
    
	
        
    private static void filterFor(MemberFavoriteGetArticleList member) {
        if (member.getArticleId() == null) {
            member.setArticleId("");
        }
        if (member.getTitle() == null) {
            member.setTitle("");
        }
        if (member.getAddTime() == null) {
            member.setAddTime("");
        }
        if (member.getImage() == null) {
            member.setImage("");
        }
        if (member.getPraise() == null) {
            member.setPraise("");
        }
    }
        
    public static void filter(MemberFavoriteGetArticleListResponse member) {
        if (member.getGetArticleList() == null) {
            member.setGetArticleList(new ArrayList<MemberFavoriteGetArticleList>());
        } else {
            for (MemberFavoriteGetArticleList item : member.getGetArticleList()) {
                filterFor(item);
            }
        }
    }
}
